package com.mark.spring.annotation.value;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Description: 配置类，注入一个cookie Bean，同时把将Cookie.properties配置文件加载到运行环境中
 * @Author: Mark
 * @CreateDate: 2019/9/22 17:51
 * @Version: 3.00.001
 * @Copyright : 豆浆油条个人非正式工作室
 */
@PropertySource(value = {"classpath:/value/Cookie.properties"})
@Configuration
public class CookieConfig {

    @Bean
    public Cookie cookie(){

       return new Cookie();
    }
}
